import BinaryTree.BinaryTree;

import javax.swing.tree.TreeNode;

/**
 * Creat with IntelliJ IDEA
 * Description:
 * User:WZW
 * Date:2022-02-08
 * Time:9:08
 */
public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        binaryTree.preOrder(binaryTree.BinaryTree());
        System.out.println();
        binaryTree.inOrder(binaryTree.root);
        System.out.println();
        binaryTree.postOrder(binaryTree.root);

        System.out.println();

        System.out.println(binaryTree.size(binaryTree.root));

        System.out.println(binaryTree.preorderTraversal(binaryTree.root));
        System.out.println(binaryTree.inorderTraversal(binaryTree.root));
        System.out.println(binaryTree.postorderTraversal(binaryTree.root));

        System.out.println(binaryTree.getKLevelNodeCount(binaryTree.root, 2));

        System.out.println(binaryTree.find(binaryTree.root, 't'));
        System.out.println(binaryTree.isCompleteTree(binaryTree.root));


    }

}
